﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
	<html>
		<body>
			<table border="1">
				<tr bgcolor="#dddddd">
					<th>Item name</th>
					<th>Item ID</th>
					<th>Item price</th>
					<th>Quantity</th>
					<th>Total price</th>
					<th>Timestamp</th>
				</tr>
				<xsl:for-each select="list/transaction">
					<tr>
						<td><xsl:value-of select="itemName"/></td>
						<td><xsl:value-of select="itemID"/></td>
						<td><xsl:value-of select="itemPrice"/></td>
						<td><xsl:value-of select="quantity"/></td>
						<td><xsl:value-of select="totalPrice"/></td>
						<td><xsl:value-of select="dateTime"/></td>
					</tr>
				</xsl:for-each>
			</table>
		</body>
	</html>
</xsl:template>
</xsl:stylesheet>